@extends('admin.layouts.default')
@section('content')
    @foreach($modules as $module)
        <div class="card small ">
            <div class="card-header">
                {{$module['name']}}
            </div>
            <div class="card-body">
                <div class="row">
                    @foreach($module['permission'] as $permission)
                        <div class="col-4 mb-2">
                            {{$permission['title']}}({{$permission['name']}})
                        </div>
                    @endforeach
                </div>
            </div>
        </div>
    @endforeach
@endsection